<?php
/**
 * #Celebrate Shieh
 *             ,%%%%%%%%,
 *           ,%%/\%%%%/\%%
 *          ,%%%\c "" J/%%%
 * %.       %%%%/ o  o \%%%
 * `%%.     %%%%    _  |%%%
 *  `%%     `%%%%(__Y__)%%'
 *  //       ;%%%%`\-/%%%'
 * ((       /  `%%%%%%%'
 *  \\    .'          |
 *   \\  /       \  | |
 *    \\/         ) | |
 *     \         /_ | |__
 *     (___________))))))) 攻城湿
 *
 *        _       _
 * __   _(_)_   _(_) __ _ _ __
 * \ \ / / \ \ / / |/ _` |'_ \
 *  \ V /| |\ V /| | (_| | | | |
 *   \_/ |_| \_/ |_|\__,_|_| |_|
 */

namespace app\Libs\Preview;

use SimpleSoftwareIO\QrCode\Facades\QrCode;

class PreviewFile
{
    /**
     * 生成二维码
     *
     * @param int    $size
     * @param null   $url
     * @param string $info
     *
     * @return string
     */
    function createQrCode( $size = 200, $url = NULL, $info = 'success' )
    {
        QrCode::format('png')->encoding('UTF-8')->size($size)->generate($info, $url);
    }

}
